<?
class TopLeftBanner
{
   function draw($fname,$text,$tmpl)  
   {
      if(!file_exists($fname)) //if file not exist - create new one
      {        
        $ie = new ImageEditor();
        $ie->loadImage($tmpl);
        $font      = "save_bn/arialbd.ttf";
        $ie->setFont($font);        
        $ie->setSize(12);
        $ie->addText($text, 12, 61, 45, 255,255,0);
        $ie->outputFile($fname,"gif");        
      }
   }
}
?>